<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" isELIgnored="false" session="true"%>

<%@taglib prefix="s" uri="http://www.springframework.org/tags"%>

<%
	String path = request.getContextPath();

	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<!DOCTYPE html>
<html>
<head>
	<base href="<%=basePath%>">
	<title><s:message code="M_6800_TOOL_MANAGEMENT_TAG" /></title>
	<%@ include file="/page/comPage/comCSS.html"%>
	<%@ include file="/page/comPage/navbar.html"%>
</head>
<body>
<div class="container-fluid">
	<div class="col-lg-12 col-md-12 col-sm-12 btnDivCss">
		<button class="btn btn-info" id="query_btn"><s:message code="QUERY_TAG" /></button>
		<button class="btn btn-primary" id="add_btn"><s:message code="ADD_TAG" /></button>
		<button class="btn btn-warning" id="update_btn"><s:message code="UPDATE_TAG" /></button>
		<button class="btn btn-primary" id="copy_btn"><s:message code="COPY_TAG" /></button>
		<button class="btn btn-danger" id="delete_btn"><s:message code="DELETE_TAG" /></button>
		<button class="btn btn-success" id="save_btn"><s:message code="SAVE_TAG" /></button>
		<button class="btn btn-warning" id="rollback_btn"><s:message code="ROLLBACK_TAG" /></button>
		<button class="btn btn-primary" id="clear_btn"><s:message code="CLEAR_TAG" /></button>
	</div>

	<div class="col-lg-4 col-md-4 col-sm-4" id="leftDiv">
		<fieldset>
			<legend><s:message code="TOOL_LIST_TAG" /></legend>
		</fieldset>
		<div id="toolListDiv">
			<table id="toolListGrd" style="height: 1px;"></table>
			<div id="toolListPg"></div>
		</div>
	</div>

	<div class="col-lg-8 col-md-8 col-sm-8" id="tabDiv">
		<div class="col-lg-12 col-md-12 col-sm-12">
			<ul id="mytab" class="nav nav-tabs">
				<li class="active"><a id="tab1" href="#tabPane_toolDetail" data-toggle="tab"> <s:message code="TOOL_DETAIL_INFO_TAG" />
				</a></li>
				<%--<li><a id="tab2" href="#tabPane_toolPt" data-toggle="tab"> <s:message code="TOOL_PT_INFO" />
				</a></li>--%>
			</ul>
			<div class="tab-content">
				<div class="tab-pane active row" id="tabPane_toolDetail">
					<br />
					<form id="toolDetailForm" class="col-lg-12 col-md-12 col-sm-12 form-horizontal">
						<div class="form-group col-lg-6 col-md-6 col-sm-6">
							<label class="control-label col-lg-6 col-md-6 col-sm-6 keyCss" for="toolIDTxt">
								<s:message code="TOOL_ID_TAG" />
							</label>
							<div class="col-lg-6 col-md-6 col-sm-6">
								<input type="text" id="toolIDTxt" class="form-control">
							</div>
						</div>
						<div class="form-group col-lg-6 col-md-6 col-sm-6">
							<label class="control-label col-lg-6 col-md-6 col-sm-6 keyCss" for="toolDscTxt">
								<s:message code="TOOL_DSC_TAG" />
							</label>
							<div class="col-lg-6 col-md-6 col-sm-6">
								<input type="text" id="toolDscTxt" class="form-control" />
							</div>
						</div>
						<div class="form-group col-lg-6 col-md-6 col-sm-6">
							<label class="control-label col-lg-6 col-md-6 col-sm-6 keyCss" for="UnitTypeSel">
								<s:message code="UNIT_TYPE_TAG" />
							</label>
							<div class="col-lg-6 col-md-6 col-sm-6">
								<select id="UnitTypeSel" class="form-control" style="width: 100%"></select>
							</div>
						</div>
						<div class="form-group col-lg-6 col-md-6 col-sm-6">
							<label class="control-label col-lg-6 col-md-6 col-sm-6 keyCss" for="toolCateSel">
								<s:message code="TOOL_CATE_TAG" />
							</label>
							<div class="col-lg-6 col-md-6 col-sm-6">
								<select id="toolCateSel" class="form-control" style="width: 100%"></select>
							</div>
						</div>
						<div class="form-group col-lg-6 col-md-6 col-sm-6">
							<label class="control-label col-lg-6 col-md-6 col-sm-6 keyCss" for="toolGroupId">
								<s:message code="TOOL_GROUP_TAG" />
							</label>
							<div class="col-lg-6 col-md-6 col-sm-6">
								<select id="toolGroupId" class="form-control" style="width: 100%"></select>
							</div>
						</div>
						<div class="form-group col-lg-6 col-md-6 col-sm-6">
							<label class="control-label col-lg-6 col-md-6 col-sm-6" for="rootToolIDSel">
								<s:message code="ROOT_TOOL_ID_TAG" />
							</label>
							<div class="col-lg-6 col-md-6 col-sm-6">
								<select id="rootToolIDSel" class="form-control" style="width: 100%"></select>
							</div>
						</div>
						<div class="form-group col-lg-6 col-md-6 col-sm-6">
							<label class="control-label col-lg-6 col-md-6 col-sm-6 keyCss" for="toolRunModeSel">
								<s:message code="TOOL_RUN_MODEL_TAG" />
							</label>
							<div class="col-lg-6 col-md-6 col-sm-6">
								<select id="toolRunModeSel" class="form-control" style="width: 100%"></select>
							</div>
						</div>

						<div class="form-group col-lg-6 col-md-6 col-sm-6">
							<label class="control-label col-lg-6 col-md-6 col-sm-6 keyCss" for="fabId">
								厂别
							</label>
							<div class="col-lg-6 col-md-6 col-sm-6">
								<select id="fabId" class="form-control" style="width: 100%"></select>
							</div>
						</div>

						<div class="form-group col-lg-6 col-md-6 col-sm-6">
							<label class="control-label col-lg-6 col-md-6 col-sm-6" for="bayIDSel">
								<s:message code="BAY_ID_TAG" />
							</label>
							<div class="col-lg-6 col-md-6 col-sm-6">
								<select id="bayIDSel" class="form-control" style="width: 100%"></select>
							</div>
						</div>
						<div class="form-group col-lg-6 col-md-6 col-sm-6">
							<label class="control-label col-lg-6 col-md-6 col-sm-6" for="toolIP">
								<s:message code="TOOL_IP_TAG" />
							</label>
							<div class="col-lg-6 col-md-6 col-sm-6">
								<input type="text" id="toolIP" class="form-control" />
							</div>
						</div>
					</form>
				</div>
	
				<%--<div class="tab-pane" id="tabPane_toolPt">
					<div id="toolPtListDiv" class="row">
						<button id="toolPt_addBtn" class="btn btn-primary">
							<s:message code="ADD_TAG" />
						</button>
						<button id="toolPt_updateBtn" class="btn btn-warning">
							<s:message code="UPDATE_TAG" />
						</button>
						<button id="toolPt_delBtn" class="btn btn-danger">
							<s:message code="DELETE_TAG" />
						</button>
						<div id="toolPortListDiv" class="row col-md-12">
							<table id="toolPortListGrd"></table>
							<div id="toolPortListPg"></div>
						</div>
					</div>
				</div>--%>
			</div>
		</div>
	</div>
</div>

<!-- 添加或修改pt项目-->
<div id="ptItemDialog" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="title" aria-hidden="true">
	<div class="modal-dialog">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
				<h4 class="modal-title" id="title">
					<s:message code="ADD_UPDATE_TAG" />
				</h4>
			</div>
			<div class="modal-body">
				<form id="dialogPtItemForm" class="row form-horizontal">
					<div class="control-group">
						<label class="control-label col-sm-4 keyCss" for="portIdTxt">
							<s:message code="TOOL_PORT_ID_TAG"></s:message>
						</label>
						<div class="col-sm-5">
							<input type="text" id="portIdTxt" class="form-control dialog-input" />
						</div>
					</div>

					<div class="control-group">
						<label class="control-label col-sm-4" for="portTypSel">
							<s:message code="TOOL_PORT_TYPE_TAG"></s:message>
						</label>
						<div class="col-sm-5">
							<select id="portTypSel" class="form-control dialog-select"></select>
						</div>
					</div>

					<div class="control-group">
						<label class="control-label col-sm-4" for="portNgSel">
							<s:message code="TOOL_PORT_NG_TAG"></s:message>
						</label>
						<div class="col-sm-5">
							<select id="portNgSel" class="form-control dialog-select"></select>
						</div>
					</div>

					<div class="control-group">
						<label class="control-label col-sm-4" for="fromStkIdSel">
							<s:message code="SUPPLY_STOCKER_ID_TAG"></s:message>
						</label>
						<div class="col-sm-5">
							<select id="fromStkIdSel" class="form-control dialog-select"></select>
						</div>
					</div>

					<div class="control-group">
						<label class="control-label col-sm-4" for="toStkIdSel">
							<s:message code="TO_STOCKER_ID_TAG"></s:message>
						</label>
						<div class="col-sm-5">
							<select id="toStkIdSel" class="form-control dialog-select"></select>
						</div>
					</div>

					<div class="control-group">
						<label class="control-label col-sm-4" for="xfrNodeTxt">
							<s:message code="TRANSFER_NODE_TAG"></s:message>
						</label>
						<div class="col-sm-5">
							<select id="xfrNodeTxt" class="form-control dialog-input"></select>
						</div>
					</div>

					<div class="control-group">
						<label class="control-label col-sm-4" for="xfrIdTxt">
							<s:message code="TRANSFER_ID_TAG"></s:message>
						</label>
						<div class="col-sm-5">
							<input type="text" id="xfrIdTxt" class="form-control dialog-input" />
						</div>
					</div>

					<div class="control-group">
						<label class="control-label col-sm-4" for="portActFlgSel">
							<s:message code="PORT_ACTIVE_FLG"></s:message>
						</label>
						<div class="col-sm-5">
							<select id="portActFlgSel" class="form-control dialog-select"></select>
						</div>
					</div>
				</form>
			</div>
			<!--Modal body-->
			<div class="modal-footer">
				<a id="ptItemDialog_cancelBtn" class="btn" data-dismiss="modal"> <s:message code="CANCEL_TAG" />
				</a> <a id="ptItemDialog_saveBtn" class="btn btn-primary"> <s:message code="SURE_TAG" />
			</a>
			</div>
		</div>
	</div>
</div>
<!-- 查询对话框 -->
<div id="queryToolDialog" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="title" aria-hidden="true">
	<div class="modal-dialog">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
				<h4 class="modal-title" id="title">
					<s:message code="QUERY_CONDITION_TAG" />
				</h4>
			</div>
			<!--Modal header-->
			<div class="modal-body">
				<div class="row">
					<form id="queryToolDialog_mdlDefForm" class="row form-horizontal">
						<div class="control-group ">
							<label class="control-label col-sm-3" for="queryToolDialog_toolIDTxt"> <s:message code="TOOL_ID_TAG" />
							</label>
							<div class="col-sm-4">
								<input type="text" id="queryToolDialog_toolIDTxt" class="form-control">
							</div>
							<div class="col-sm-5">
								<label id="queryToolDialog_helpLineSpn" class="help-inline control-label"> 模糊查询请使用<span style="color: red; font-weight: bold;">*</span>
								</label>
							</div>
						</div>
					</form>
				</div>
			</div>
			<!--Modal body-->
			<div class="modal-footer">
				<a id="queryToolDialog_cancelBtn" class="btn" data-dismiss="modal"> <s:message code="CANCEL_TAG" />
				</a> <a id="queryToolDialog_queryBtn" class="btn btn-primary"> <s:message code="QUERY_BTN_TAG" />
			</a>
			</div>
		</div>
	</div>
</div>
</body>
<%@ include file="/page/comPage/comJS.html"%>
<script type="text/javascript" src="js/page/6000/6800.js"></script>
</html>